import axios from '../axios'

/* 
 * 系统登录模块
 */

// 验证码
export const verifyCode = data => {
	return axios({
		url: '/api/portal/login/getVerifyCode',
		method: 'post',
		data,
		responseType: 'arraybuffer'
	})
}

// 登录
export const login = data => {
	return axios({
		url: '/api/portal/login/login',
		method: 'post',
		params: data
	})
}

// 登出
export const logout = () => {
	return axios({
		url: 'logout',
		method: 'get'
	})
}
